home *** CD-ROM | disk | FTP | other *** search
/ PD ROM 1 / PD ROM Volume I - Macintosh Software from BMUG (1988).iso / Stacks / Updates⁄New / MemoNoteStack 4.0 / card_2271.txt < prev    next >
Encoding:
Text File  |  1988-03-06  |  5.5 KB  |  241 lines

  1. -- card: 2271 from stack: in.0
  2. -- bmap block id: 3225
  3. -- flags: 0000
  4. -- background id: 2781
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 01
  10. -- high flags: 4007
  11. -- rect: left=212 top=166 right=269 bottom=438
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 3
  16. -- text size: 9
  17. -- style flags: 0
  18. -- line height: 12
  19. -- part name: Note 1
  20.  
  21.  
  22. -- part 2 (button)
  23. -- low flags: 00
  24. -- high flags: C002
  25. -- rect: left=212 top=148 right=166 bottom=283
  26. -- title width / last selected line: 0
  27. -- icon id / first selected line: 0 / 0
  28. -- text alignment: 1
  29. -- font id: 0
  30. -- text size: 12
  31. -- style flags: 0
  32. -- line height: 16
  33. -- part name: Note
  34. ----- HyperTalk script -----
  35. *NoteButtonScript*4.0
  36. on mouseup
  37.   send NoteButtonMouseUp
  38. end MouseUp
  39.  
  40. ****This note created 2/24/88
  41. MemoNotes‚Ñ¢ Hypernote system
  42. ¬©1988 PeterFraterdeus
  43. CIS 73306,2703
  44. ShareWare-$15. to: Alphabets, Inc.
  45. 804 Dempster St./ Evanston, IL. 60202
  46.  
  47.  
  48.  
  49. -- part 3 (button)
  50. -- low flags: 00
  51. -- high flags: 4002
  52. -- rect: left=421 top=269 right=286 bottom=438
  53. -- title width / last selected line: 0
  54. -- icon id / first selected line: 1018 / 1018
  55. -- text alignment: 1
  56. -- font id: 0
  57. -- text size: 12
  58. -- style flags: 0
  59. -- line height: 16
  60. -- part name: Grow
  61. ----- HyperTalk script -----
  62. NoteGrowButton
  63. **
  64. on mousedown
  65.   send NoteGrowMouseDown
  66. end mousedown
  67. ***
  68. on mouseup
  69.   send NoteGrowMouseUp
  70. end mouseUp
  71. ****
  72. on showGrow
  73.   send showGrowButton
  74. end showGrow
  75.  
  76. MemoNotes‚Ñ¢ Hypernote system
  77. ¬©1988 PeterFraterdeus
  78. CIS 73306,2703
  79. ShareWare-$15. to: Alphabets, Inc.
  80. 804 Dempster St./ Evanston, IL. 60202
  81.  
  82.  
  83.  
  84. -- part 4 (button)
  85. -- low flags: 00
  86. -- high flags: A002
  87. -- rect: left=48 top=224 right=243 bottom=189
  88. -- title width / last selected line: 0
  89. -- icon id / first selected line: 0 / 0
  90. -- text alignment: 1
  91. -- font id: 0
  92. -- text size: 12
  93. -- style flags: 0
  94. -- line height: 16
  95. -- part name: More on MemoNotes
  96. ----- HyperTalk script -----
  97. on mouseUp
  98.   go first
  99. end mouseUp
  100.  
  101.  
  102.  
  103.  
  104. -- part 7 (button)
  105. -- low flags: 00
  106. -- high flags: A002
  107. -- rect: left=48 top=200 right=219 bottom=189
  108. -- title width / last selected line: 0
  109. -- icon id / first selected line: 0 / 0
  110. -- text alignment: 1
  111. -- font id: 0
  112. -- text size: 12
  113. -- style flags: 0
  114. -- line height: 16
  115. -- part name: More on DoMeNotes
  116. ----- HyperTalk script -----
  117. on mouseUp
  118.   go to card id 3883
  119. end mouseUp
  120.  
  121.  
  122.  
  123.  
  124. -- part 8 (button)
  125. -- low flags: 00
  126. -- high flags: 8003
  127. -- rect: left=47 top=146 right=168 bottom=194
  128. -- title width / last selected line: 0
  129. -- icon id / first selected line: 0 / 0
  130. -- text alignment: 1
  131. -- font id: 0
  132. -- text size: 12
  133. -- style flags: 0
  134. -- line height: 16
  135. -- part name: Install MemoNotes™
  136. ----- HyperTalk script -----
  137. --MemoNotes Script Installer v1.0 26Jan88 by Peter Fraterdeus
  138. --This Button can be modified to install or "de-install" any script into
  139. --any object. I'll leave it up to you to figure out!
  140.  
  141. on mouseUp
  142.   global tempScript
  143.   put msg into tempmsg
  144.   get the script of stack "Home"
  145.   put it into tempScript
  146.   put ">MemoNote" into targText
  147.  
  148.   if the optionkey is down then
  149.     DeleteScript targText
  150.     set the name of me to "Install MemoNotes‚Ñ¢"
  151.     set the script of stack "Home" to tempScript
  152.     put tempMsg
  153.     exit mouseUp
  154.   end if
  155.  
  156.   if it contains targText then
  157.     put it into TempScript
  158.     answer "MemoNote already Installed!" with  "Re-Install" or "Cancel"
  159.     if it = "Re-Install" then
  160.       DeleteScript targText
  161.     else -- don't re-install
  162.       put tempMsg
  163.       exit mouseup
  164.     end if
  165.   end if
  166.  
  167.   put "Inserting New Script‚Ķ"
  168.   put the script of stack "MemoNoteStack*4.0" before tempScript
  169.   set the script of stack "Home" to tempScript
  170.   put tempMsg
  171.  
  172. end mouseup
  173.  
  174. on mousedown
  175.   if the optionkey is down then
  176.     set the name of me to "De-Install"
  177.   else
  178.     set the name of me to "Install MemoNotes‚Ñ¢"
  179.   end if
  180. end mousedown
  181.  
  182. on DeleteScript TargText
  183.   global tempScript
  184.   set the cursor to 4
  185.   put TempScript into it
  186.   put the number of lines in it into msg
  187.   put 0 into n
  188.   Put "Analyzing Script‚Ķ"
  189.   repeat with i=1 to the number of lines in it
  190.     if line i of it contains targText then add 1 to n
  191.   end repeat
  192.   if n<>2 then
  193.     Answer"Unbalanced Script - Can't Auto Update" with "OK"
  194.     exit to hypercard
  195.   end if
  196.   put 0 into n
  197.   Put "Deleting Old Script‚Ķ"
  198.   repeat until line n of it contains targText
  199.     add 1 to n
  200.   end repeat
  201.   delete line n of it
  202.   repeat until line n of it contains targText
  203.     delete line n of it
  204.   end repeat
  205.   delete line n of it
  206.   put it into tempScript
  207. end deleteScript
  208.  
  209.  
  210.  
  211. -- part 9 (button)
  212. -- low flags: 00
  213. -- high flags: A002
  214. -- rect: left=48 top=176 right=195 bottom=189
  215. -- title width / last selected line: 0
  216. -- icon id / first selected line: 0 / 0
  217. -- text alignment: 1
  218. -- font id: 0
  219. -- text size: 12
  220. -- style flags: 0
  221. -- line height: 16
  222. -- part name: MemoNote Settings
  223. ----- HyperTalk script -----
  224. on mouseUp
  225.   go to card id 4731
  226. end mouseUp
  227.  
  228.  
  229.  
  230.  
  231. -- part contents for card part 1
  232. ----- text -----
  233. The Install MemoNotes‚Ñ¢ button has been thoroughly tested and contains safeguards against fouling up your Home stack.
  234. If MemoNotes is already installed, you are given the option of re-installing it. This is primarily for upgrading‚Ķ
  235. If the option key is down, the button says "De-Install", and it will remove the MemoNotes system from your Home stack.
  236. The Installer depends on the two 
  237. ">MemoNote" delimiters which are installed with the script. If there are more or less than two, the Installer will tell you that the script is unbalanced and can't be auto-deleted. Everything between the two limits will be removed.
  238.  
  239. -- part contents for background part 31
  240. ----- text -----
  241. Version 4.1.1